package file;

import java.io.File;

public class MkdirDemo {
    public static void main(String[] args) {
        File file = new File("./demo");
        if (file.exists()){
            System.out.println("目录已存在");
            file.delete();
            return;
        }
        file.mkdir();
        System.out.println("目录已创建");
    }
}
